/*
 * @Description: 员工接口
 * @Author: lwx
 * @Date: 2022-06-14 16:57:21
 * @LastEditors: lwx
 * @LastEditTime: 2023-04-12 11:29:47
 */
import request from '@/utils/request'

/* 获取员工信息列表 */
export function getEemList(page) {
    return request({
        url: '/user/list',
        method: 'GET',
        params: page
    })
}
/* 添加员工 */
export function addEmplyoee(data) {
    return request({
        url: 'register',
        method: 'POST',
        data
    })
}

/* 修改员工信息 */
export function updateEmpInfo(data) {
    return request({
        url: '/user',
        method: 'PUT',
        data
    })
}